.class public Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;
.super Lcom/estrongs/android/pop/esclasses/m;
.source "PerformanceAccelerateService.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;,
        Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;
    }
.end annotation


# instance fields
.field private a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/au;",
            ">;"
        }
    .end annotation
.end field

.field private b:Ljava/lang/String;

.field private c:Z

.field private d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

.field private e:Landroid/content/BroadcastReceiver;

.field private f:Landroid/os/Handler;

.field private g:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

.field private h:Lcom/estrongs/android/pop/app/service/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/m;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a:Ljava/util/ArrayList;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c:Z

    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Lcom/estrongs/android/pop/app/service/a;)Lcom/estrongs/android/pop/app/service/a;
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->h:Lcom/estrongs/android/pop/app/service/a;

    return-object p1
.end method

.method private a()Ljava/lang/String;
    .locals 1

    .line 11
    invoke-static {}, Lcom/estrongs/android/util/f0;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/lang/String;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b:Ljava/lang/String;

    return-object p1
.end method

.method private a(J)Z
    .locals 8

    .line 6
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x0

    :try_start_0
    const-string v2, "2014-06-20"

    .line 7
    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/Date;->getTime()J

    move-result-wide v2

    const-string v4, "2014-07-01"

    .line 8
    invoke-virtual {v0, v4}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v4

    .line 9
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    cmp-long v0, v6, v2

    if-ltz v0, :cond_1

    cmp-long v0, v6, v4

    if-lez v0, :cond_0

    goto :goto_0

    :cond_0
    sub-long/2addr v6, p1

    const-wide/32 p1, 0x66ff3000

    cmp-long v0, v6, p1

    if-lez v0, :cond_2

    const/4 p1, 0x1

    return p1

    :cond_1
    :goto_0
    return v1

    :catch_0
    move-exception p1

    .line 10
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_2
    return v1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;J)Z
    .locals 0

    .line 5
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a(J)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Z)Z
    .locals 0

    .line 4
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->h:Lcom/estrongs/android/pop/app/service/a;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;-><init>(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    .line 3
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->f:Landroid/os/Handler;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c()V

    .line 5
    new-instance v0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->f:Landroid/os/Handler;

    invoke-direct {v0, p0, v1}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;-><init>(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->g:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a:Ljava/util/ArrayList;

    new-instance v1, Les/au$e;

    invoke-direct {v1}, Les/au$e;-><init>()V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->g:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    return-object p0
.end method

.method private c()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->e:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_0

    return-void

    .line 3
    :cond_0
    new-instance v0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$a;-><init>(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->e:Landroid/content/BroadcastReceiver;

    .line 4
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    .line 5
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "android.net.wifi.STATE_CHANGE"

    .line 6
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->e:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Landroid/app/Service;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b:Ljava/lang/String;

    return-object p0
.end method

.method private d()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->e:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Service;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->c:Z

    return p0
.end method

.method static synthetic f(Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;)Ljava/util/ArrayList;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a:Ljava/util/ArrayList;

    return-object p0
.end method


# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    if-nez p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b()V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->g:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a:Ljava/util/ArrayList;

    invoke-virtual {p1, v0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;->a(Ljava/util/ArrayList;)V

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    return-object p1
.end method

.method public onCreate()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    return-void
.end method

.method public onDestroy()V
    .locals 2

    .line 1
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d()V

    .line 3
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 4
    invoke-virtual {p0, v0}, Landroid/app/Service;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    return-void
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .locals 0

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->d:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$c;

    if-nez p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->b()V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->g:Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->a:Ljava/util/ArrayList;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService$b;->a(Ljava/util/ArrayList;)V

    :cond_0
    const/4 p1, 0x1

    return p1
.end method

.method public onUnbind(Landroid/content/Intent;)Z
    .locals 2

    .line 1
    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {}, Les/zt;->g()Les/zt;

    move-result-object v0

    invoke-virtual {v0, v1}, Les/zt;->a(Lcom/estrongs/android/pop/app/service/a;)V

    .line 3
    :cond_0
    iput-object v1, p0, Lcom/estrongs/android/pop/app/service/PerformanceAccelerateService;->h:Lcom/estrongs/android/pop/app/service/a;

    .line 4
    invoke-super {p0, p1}, Landroid/app/Service;->onUnbind(Landroid/content/Intent;)Z

    move-result p1

    return p1
.end method
